(global.webpackJsonp = global.webpackJsonp || []).push([ [ "article/article/articleDetail" ], {
    "136d": function(t, e, i) {
        i.d(e, "b", function() {
            return o;
        }), i.d(e, "c", function() {
            return r;
        }), i.d(e, "a", function() {
            return n;
        });
        var n = {
            courseList: function() {
                return Promise.all([ i.e("common/vendor"), i.e("components/courseList/courseList") ]).then(i.bind(null, "4b60"));
            }
        }, o = function() {
            var t = this, e = (t.$createElement, t._self._c, t.inputfocus ? t.__get_style([ t.isContent ? t.send : t.nosend ]) : null);
            t._isMounted || (t.e0 = function(e) {
                t.text = e.detail.value;
            }), t.$mp.data = Object.assign({}, {
                $root: {
                    s0: e
                }
            });
        }, r = [];
    },
    "647d": function(t, e, i) {
        (function(t) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var n = i("b806"), o = (i("a71e"), i("7a6d"), i("8434")), r = function(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }(i("801c")), a = (i("db8f"), i("4771")), c = i("26cb"), s = i("f809"), u = i("7960"), l = i("a71e");
            function d(t) {
                return function(t) {
                    if (Array.isArray(t)) return p(t);
                }(t) || function(t) {
                    if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t);
                }(t) || function(t, e) {
                    if (t) {
                        if ("string" == typeof t) return p(t, e);
                        var i = Object.prototype.toString.call(t).slice(8, -1);
                        return "Object" === i && t.constructor && (i = t.constructor.name), "Map" === i || "Set" === i ? Array.from(t) : "Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? p(t, e) : void 0;
                    }
                }(t) || function() {
                    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
                }();
            }
            function p(t, e) {
                (null == e || e > t.length) && (e = t.length);
                for (var i = 0, n = new Array(e); i < e; i++) n[i] = t[i];
                return n;
            }
            function f(t, e) {
                var i = Object.keys(t);
                if (Object.getOwnPropertySymbols) {
                    var n = Object.getOwnPropertySymbols(t);
                    e && (n = n.filter(function(e) {
                        return Object.getOwnPropertyDescriptor(t, e).enumerable;
                    })), i.push.apply(i, n);
                }
                return i;
            }
            function h(t) {
                for (var e = 1; e < arguments.length; e++) {
                    var i = null != arguments[e] ? arguments[e] : {};
                    e % 2 ? f(Object(i), !0).forEach(function(e) {
                        m(t, e, i[e]);
                    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : f(Object(i)).forEach(function(e) {
                        Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e));
                    });
                }
                return t;
            }
            function m(t, e, i) {
                return e in t ? Object.defineProperty(t, e, {
                    value: i,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : t[e] = i, t;
            }
            var g, _ = {
                components: {
                    paper: function() {
                        i.e("article/article/components/questionList").then(function() {
                            return resolve(i("f3da"));
                        }.bind(null, i)).catch(i.oe);
                    }
                },
                data: function() {
                    return {
                        article: {
                            id: ""
                        },
                        attribute: {
                            is_zan: !1,
                            is_collect: !1
                        },
                        comment: [],
                        comment_action: {
                            cid: 0,
                            uid: 0
                        },
                        show_share: !1,
                        input_height: 0,
                        inputfocus: !1,
                        isContent: !1,
                        inputText: "",
                        params: {
                            type: 3,
                            id: ""
                        },
                        isbar: "",
                        text: "",
                        pager: 1,
                        is_wxh5: !1,
                        is_h5: !1,
                        H5focus: !0,
                        isRequest: !1,
                        courseLists: {
                            data: [],
                            params: {
                                bgColor: "#FFFFFF",
                                bottomRadius: "0px",
                                num: "5",
                                outColor: "#FFFFFF",
                                outType: "1",
                                paddingBottom: "0px",
                                paddingLR: "5px",
                                paddingTop: "5px",
                                priceColor: "#FF5555",
                                show: "1",
                                sourse: "1",
                                titleColor: "#333333",
                                topRadius: "0px",
                                type: "2",
                                type_id: null,
                                type_name: null,
                                viewColor: "#999999"
                            }
                        },
                        enrollLists: {
                            data: [],
                            params: {
                                bgColor: "#FFFFFF",
                                bottomRadius: "0px",
                                num: "5",
                                outColor: "#FFFFFF",
                                outType: "1",
                                paddingBottom: "0px",
                                paddingLR: "5px",
                                paddingTop: "5px",
                                priceColor: "#FF5555",
                                show: "1",
                                sourse: "1",
                                titleColor: "#333333",
                                topRadius: "0px",
                                type: "2",
                                type_id: null,
                                type_name: null,
                                viewColor: "#999999"
                            }
                        },
                        paperParams: {
                            type: 1
                        },
                        paperDatas: [],
                        annexLists: {
                            data: [],
                            params: {
                                bgColor: "#FFFFFF",
                                bottomRadius: "0px",
                                num: "5",
                                outColor: "#FFFFFF",
                                outType: "1",
                                paddingBottom: "0px",
                                paddingLR: "5px",
                                paddingTop: "5px",
                                priceColor: "#FF5555",
                                show: "1",
                                sourse: "1",
                                titleColor: "#333333",
                                topRadius: "0px",
                                type: "2",
                                type_id: null,
                                type_name: null,
                                viewColor: "#999999"
                            }
                        },
                        products: {
                            data: [],
                            params: {
                                bgColor: "#FF3C29",
                                bgType: "1",
                                bottomRadius: "6px",
                                btnColor: "#FF3C29",
                                btnType: "1",
                                goodBgColor: "#FFFFFF",
                                isBtn: "1",
                                isLinePrice: "1",
                                isMake: "0",
                                isPrice: "1",
                                isSales: "1",
                                linePriceColor: "#969696",
                                lineTitle: "原价",
                                makeColor: "#367bf5",
                                makeTitle: "推荐",
                                makeType: "1",
                                num: "10",
                                paddingBottom: "0px",
                                paddingLR: "5px",
                                paddingTop: "5px",
                                priceColor: "#FF3C29",
                                salesColor: "#969696",
                                salesTitle: "销量",
                                show: "1",
                                sourse: "1",
                                titleColor: "#212121",
                                topRadius: "6px",
                                type: "3",
                                type_id: null
                            }
                        },
                        articleHeight: "",
                        isGetIntegral: !0,
                        screenHeight: "",
                        seeTime: -1,
                        userId: -1
                    };
                },
                computed: h(h({}, (0, c.mapGetters)([ "mainColor", "user", "iphoneXStyle", "tabbar" ])), {}, {
                    send: function() {
                        return {
                            "background-color": this.mainColor,
                            color: "#fff"
                        };
                    },
                    nosend: function() {
                        return {
                            color: this.mainColor,
                            border: "1rpx solid " + this.mainColor,
                            "background-color": "#fff",
                            opcity: "0.5"
                        };
                    }
                }),
                onShow: function() {
                    (0, n.init)(this).then(function(t) {});
                },
                onLoad: function(e) {
                    var i = this;
                    g = this, (0, l.isEmpty)(e.pid) || r.default.commit("config/SET_PID", e.pid), (0, 
                    l.isEmpty)(decodeURIComponent(e.scene).split("pid=")[1]) || r.default.commit("config/SET_PID", decodeURIComponent(e.scene).split("pid=")[1]), 
                    (0, l.isEmpty)(e.id) ? (0, l.isEmpty)(decodeURIComponent(e.scene).split("id=")[1].split("&")[0]) || b(decodeURIComponent(e.scene).split("id=")[1].split("&")[0]) : (g.article.id = e.id, 
                    g.params.id = e.id, b(e.id)), t.getSystemInfo({
                        success: function(t) {
                            i.screenHeight = t.windowHeight;
                        }
                    }), (0, a.getStorageSync)("userInfo").then(function(t) {
                        var e = JSON.parse(t.data);
                        i.userId = e.id;
                    });
                },
                onPullDownRefresh: function() {
                    b(this.article.id);
                },
                onShareAppMessage: function(t) {
                    return "button" === t.from && this.$refs.BotShow.isBotShow(), {
                        title: this.article.title,
                        path: "/article/article/articleDetail?id=" + this.article.id + "&pid=" + this.user.id
                    };
                },
                onShareTimeline: function() {
                    return {
                        title: this.article.title,
                        query: 0,
                        imageUrl: this.article.img
                    };
                },
                mounted: function() {},
                onPageScroll: function(t) {
                    var e = parseFloat(this.screenHeight * this.article.article_jf_data / 100).toFixed(2);
                    if (-1 == this.userId || parseFloat(this.articleHeight) < parseFloat(e) || !this.isGetIntegral) return !1;
                    1 == this.article.article_jf_type && 1 == this.article.article_jf_reward && t.scrollTop > parseFloat(this.articleHeight) - 200 && (this.$refs.model.openModel(), 
                    this.getReward());
                },
                methods: {
                    shareModal: function(t) {},
                    bindPhoneSuccess: function() {},
                    successLogins: function() {},
                    confirm: function() {
                        this.getReward();
                    },
                    getReward: function() {
                        var t = {
                            id: this.article.id,
                            isLoading: !1
                        };
                        this.isGetIntegral = !1, (0, s.articleReward)(t).then(function(t) {});
                    },
                    getHeight: function() {
                        var e = this;
                        if (-1 != e.userId && 1 == this.article.article_jf_reward && 1 == this.article.article_jf_type) {
                            var i = t.createSelectorQuery();
                            i.select("#article-content").boundingClientRect(), i.exec(function(t) {
                                e.articleHeight = parseFloat(t[0].height * e.article.article_jf_data / 100).toFixed(2), 
                                parseFloat(e.screenHeight * e.article.article_jf_data / 100).toFixed(2), t[0].height < e.screenHeight && setTimeout(function() {
                                    e.$refs.model.openModel();
                                }, 300);
                            });
                        }
                    },
                    goCourseDetail: function(t) {
                        (0, o.route)({
                            url: "/course/course/courseDetails",
                            type: 1,
                            data: {
                                id: t.id
                            }
                        });
                    },
                    goEnrollDetail: function(t) {
                        (0, o.route)({
                            url: "/enroll/detail",
                            type: 1,
                            data: {
                                id: t.id
                            }
                        });
                    },
                    goPaperDetail: function(t) {
                        (0, o.route)({
                            url: "/question/paper/index",
                            type: 1,
                            data: {
                                id: t.id
                            }
                        });
                    },
                    goAnnexDetail: function(t) {
                        (0, o.route)({
                            url: "/annex/detail",
                            type: 1,
                            data: {
                                id: t.id
                            }
                        });
                    },
                    goProductDetail: function(t) {
                        (0, o.route)({
                            url: "/shop/index",
                            type: 1,
                            data: {
                                id: t
                            }
                        });
                    },
                    hideModal: function(t) {
                        this.show_share = !1;
                    },
                    hideInput: function() {
                        this.inputfocus = !1, this.isContent = !1, this.input_height = 0, this.comment_action = {};
                    },
                    inputContent: function(t) {
                        return t.detail.value ? (this.isContent = !0, void (this.inputText = t.detail.value)) : t.detail.value ? void 0 : (this.isContent = !1, 
                        void (this.inputText = ""));
                    },
                    keyboardheightchange: function(t) {
                        this.input_height = t.detail.height;
                    },
                    H5Focus: function(t) {
                        this.input_height = t.detail.height, 0 == this.input_height && this.hideInput();
                    },
                    share: function() {
                        var t = this;
                        (0, u.h5JudgeLogin)(2).then(function(e) {
                            e || t.$refs.BotShow.isBotShow();
                        });
                    },
                    action: function(t) {
                        (0, u.h5JudgeLogin)(2).then(function(e) {
                            e || (0, s.artcAtbute)({
                                action: t,
                                id: g.params.id
                            }).then(function(e) {
                                if ("zan" != t) return g.attribute.is_collect = !g.attribute.is_collect, g.attribute.is_collect ? void g.$toast("收藏成功", "none") : void g.$toast("取消收藏", "none");
                                e ? g.article.zan_num++ : g.article.zan_num--, g.attribute.is_zan = !g.attribute.is_zan;
                            });
                        });
                    },
                    isCommentShow: function(t) {
                        var e = this;
                        (0, u.h5JudgeLogin)(2).then(function(i) {
                            if (!i) {
                                if (t.uid == e.user.id) return e.$toast("不能评论自己", "none"), void e.hideInput();
                                e.comment_action = t, console.log("手动点击"), e.clickInput();
                            }
                        });
                    },
                    clickInput: function() {
                        var t = this;
                        (0, u.h5JudgeLogin)(2).then(function(e) {
                            e || (t.inputfocus = !0, t.isContent = !1);
                        });
                    },
                    commentRe: function() {
                        var t = this.comment_action;
                        if (!this.inputText) return this.$toast("请输入评论内容", "none"), this.input_height = 0, 
                        this.inputfocus = !1, this.comment_action = {}, this.isContent = !1, void (this.inputText = "");
                        var e = {
                            article_id: this.article.id,
                            content: this.inputText,
                            cid: t.cid ? t.cid : 0,
                            uid: t.uid ? t.uid : 0
                        };
                        (0, s.articleComment)(e).then(function(e) {
                            g.pager = 1, y(), g.inputfocus = !1, g.isContent = !1, g.input_height = 0, g.inputText = "", 
                            t.cid = 0, t.uid = 0, g.$toast("评论成功", "none");
                        });
                    }
                },
                onReachBottom: function() {
                    g.pager++, y();
                }
            };
            function b(e) {
                g.article = "", g.attribute = {
                    is_zan: !1,
                    is_collect: !1
                }, (0, s.articleInfo)({
                    id: e,
                    isLoading: !1
                }).then(function(e) {
                    g.article = e, -1 != g.userId && 1 == e.article_jf_reward && 2 == e.article_jf_type && (g.seeTime = e.article_jf_data), 
                    g.courseLists.data = e.relation_course_arr, g.enrollLists.data = e.relation_enroll_arr, 
                    g.paperDatas = e.relation_paper_arr, g.annexLists.data = e.relation_annex_arr, g.products.data = e.relation_good_arr, 
                    g.params.id = g.article.id, g.attribute.is_collect = e.is_collect, g.attribute.is_zan = e.is_zan, 
                    g.pager = 1, y(), t.stopPullDownRefresh(), t.setNavigationBarTitle({
                        title: g.article.title
                    });
                });
            }
            function y() {
                var t = {
                    article_id: g.article.id,
                    page: g.pager,
                    pagesize: 10,
                    isLoading: !1
                };
                (0, s.articleCommentList)(t).then(function(t) {
                    var e = g.comment, i = t;
                    e && 1 != g.pager && (i = [].concat(d(e), d(i))), g.comment = i, g.isRequest = 0 == g.comment.length;
                });
            }
            e.default = _;
        }).call(this, i("543d").default);
    },
    "723e": function(t, e, i) {},
    8795: function(t, e, i) {
        i.r(e);
        var n = i("647d"), o = i.n(n);
        for (var r in n) "default" !== r && function(t) {
            i.d(e, t, function() {
                return n[t];
            });
        }(r);
        e.default = o.a;
    },
    "9c85f": function(t, e, i) {
        (function(t) {
            i("1067"), n(i("66fd"));
            var e = n(i("a0e6"));
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = i, t(e.default);
        }).call(this, i("543d").createPage);
    },
    a0e6: function(t, e, i) {
        i.r(e);
        var n = i("136d"), o = i("8795");
        for (var r in o) "default" !== r && function(t) {
            i.d(e, t, function() {
                return o[t];
            });
        }(r);
        i("f4f1");
        var a = i("f0c5"), c = Object(a.a)(o.default, n.b, n.c, !1, null, "719c9d38", null, !1, n.a, void 0);
        e.default = c.exports;
    },
    f4f1: function(t, e, i) {
        var n = i("723e");
        i.n(n).a;
    }
}, [ [ "9c85f", "common/runtime", "common/vendor" ] ] ]);